import { Body, Controller, Post } from '@nestjs/common';
import { ObpService } from './obp.service';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { QueryOpenIdDto } from './dto/query-openId.dto';

@Controller('obp')
@ApiTags('小平台')
export class ObpController {
  constructor(private readonly obpService: ObpService) {}

  @Post()
  @ApiOperation({ summary: '根据用户id查询小平台用户openId' })
  queryOpenIdByUserId(@Body() queryDto: QueryOpenIdDto) {
    return this.obpService.queryOpenIdByUserId(queryDto);
  }
}
